
///
/// This is the Client class
///

#ifndef CLIENT_H
#define CLIENT_H


class Client
{

public:


	int Initialize(const char* ip, const char* portNo);

	int Execute();

	static Client* GetInstance() { if(mClient == NULL) mClient = new Client; return mClient; }

	static void Destroy() { if(mClient) delete mClient; }

/*	// Here are the handlers
	int HandleNakCommand();
*/

private:
	
	// private constructor for singleton
	Client() {}

/*	int SendJoin();
	int SendChat(const char* chatMsg);
	int SendLeave();
*/
	int mMainFD;

/*	std::string mUserName;
	
	fd_set mConnectedFDS;
	int mMaxFD;
*/
	char mMsgBuf[MSG_BUF_SIZE];

	static Client* mClient;
};

#endif //CLIENT_H
